import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import ElementPlus from 'element-plus'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-expect-error
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
// import SvgIcon from '@/components/SvgIcon/index.vue'
import globalComponent from '@/components'
import './style/index.scss'
const app = createApp(App)

app.use(store)
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
})
// 注册全局组件
// app.component('SvgIcon', SvgIcon)

// 批量注册全局组件
app.use(globalComponent)
// 获取当前环境变量
// console.log(import.meta.env)

app.mount('#app')
